/**
 * Author: zhezhen.cheng
 * Creation Time: 2016/6/14.
 * Description:...
 */
define(['jquery','../../common/ajax/ajax','../v/productListV'],
    function($,ajax,productListV) {
        var productList={
            phoneList:function(that){
                  ajax({
                        url:interfaces.indexProductList,
                        dataType:'json',
                        type:"post",
                        data:JSON.stringify({type:$(that).attr('data-type'),shopId:9}),
                        cache:{
                            use:true,
                            name:'phoneListV',
                            time:10
                        },
                        isOk:function(data){
                            productListV(data,$(that).attr('data-type'));
                        }
                    })},
             otherPj:function(that){
                 ajax({
                 url:interfaces.indexProductList,
                 dataType:'json',
                 type:"post",
                 data:JSON.stringify({type:$(that).attr('data-type'),shopId:9}),
                 cache:{
                     use:true,
                     name:'otherPjV',
                     time:10
                 },
                 isOk:function(data){
                     productListV(data,$(that).attr('data-type'));
                 }
             })
         }

        };
       return productList;
    });